Fix js login

Fix the Facebook JS dialog when the user click cancel. Current behavior is to submit the form anyway. Fixing behavior to show an error message to the user without redirecting them.