fixed bug with profile validation