fix edit user profile defect, add js validations