Javascript validation in edit profile.