adding some basic user checks