fix bug in admin login