check by user object to determine user type