Adding error control for user profile modification