Added user authentication and blocked access to relevant pages