Adding some user authentication functionalities.