adding ability to update profile with error messages