* fix bug in profile validation