improved handling of admin login form