login controller changed for encrypted password