Fixed pre check for users login