Implemented a simple authentication function that hide some json values
if user is not logged in.