User login and register, PHPMailer functions