Simplify login form handler.