Implemented users authentication