I want to know how to add login protection to a form.