admin can register and login