Code changes did for save registration functionality