ADD redirect to back after login and logout.
REF minor things.