How to restrict access to the home page