Форма с имейл и парола action="/user/login" method="post" if statement за error Разгледайте UserController