Catch Not Logged In error and window.alert(). Clear input values when submitting