sendEmail, login,register controller and model