Adds login function to signup.php