fixed error which prevented login as admin