Added offline mode to LoginFragment