Adds login logout, invitations for viral growth and form validation with AJAX.