refine error messages on profile and settings