Change login to form_tag