HTML Backbone, login/register functionality