Added UserAuthenticator class

Class for authenticating a user with a database.