Changed login form to handle AuthenticationException