Adding a check so that admin page cannot be accessed by non-admin user