Add an example of making a login form that can handle both ajax request and normal form submit