Made Authenticate class to handle some simple functions.