adding stage while registration and fix in add/edit file