fix registration bug and profile form bug