show login form when perm denied instead of just error

Right now, if you have your wiki protected, you get just a permission denied message, this changes it to display a login form, unless you're already logged in, in which case, it displays the denied message.