Adding in user check functionaity with the database