fixed javascript issue.

users can logout again.