The `a:not(..` part seems overkill since the `<li>` won't have the `submit` class if the user isn't authenticated. I also don't see the reason for not using a direct bind. You could just put an ID on the link and do `$('#submit_button').on('click', function(e) {...`.