Update loginFunctions.php