first how to make that if user enter the username and password right redirects him to next page ?
This is not an Arduino specific issue. I suggest that you put the Arduino away until you have studied html programming on a PC. When you understand how to do something this basic, get the Arduino back out.
Look at what a submit button on a form does.