Fix login and admin access broken