added dependency of hashlib
added function for new auth model
more performant authentication , more beautiful response setup