Adding input santitation to getById