redesign the register and login, modifiy session and user talbes