added and implemented authentication class. Added auth from json file method.