Created by: lbt
Change text_field to :login from :email in line with 9d92433a to allow login as admin or non-ldap user when ldap is enabled
Also change haml style in line with that commit