Cleanup for modality code
* Comments for some code choices
* TODO for adding the registration form
* Updating the URL for login redirection