added basic user checking