splitted login.php into login and getkey