Feature security

Added a basic authentication check.