Fixing form validation in Edit profile