corrected user login error in modal login form and reapplied click event...

... handling to sign-out link when needed