Added aurorization logic to access settings page