woking on login and form errors