updated register and login modules