added methods to handle user auth form submissions for login and register