Check env. is offline or not and remove login feature from offline mode