Fixed bug with wrong function name in api/login.php.