implemented users controller