Added two helper methods user_present and type_of_user