form modal now updating and then removing itself, but the register button still needs to be reset