Fixed an issue in Edit User function