Profile validation logic