endless redirect for users login when not approved is fixed