Fixed basic auth to work only in production