updated the register controller, user and base models