Add method to authenticate database users.