Register and login seem to be finished, retrieving username and token and storing them in sessionStorage.
Added a log off button and simple management of session through sessionStorage.