fixing redirect to login page and adding communities page