if no current user, render authenticate in appointments#update
the form for each appointment in the index is remote: true so that the request processed from it is javascript
appointments controller#update when rendering authenticate, looks for it in the users folder. users folder view files accordingly to render authentication modal