Changed authentication system to run off of the database.