added user checking in db