changed the $profile_types constant to lowercase, fixed a minor problem with the validator