validator implementation of profile.html