fix login form errors