Avoid logging in for restricted users(Implemented logic not yet enabled)