Refactored login form to use form_tag