Change user authentication statement and form action

@aferragano - made the changes to login. Can you review and merge please?