Let ajax response close dialog on form submission

It's possible that the form is not accepted, so leave it open.
Close login form dialog on successful login