log in form refinement