update login.php controller