completed the register and login modules