small error checking in user management