Code enhancment for user profile edit page