working on register submission