finish ui of register and login