Creating user_change function