rename main.html to main.php and finish the login module