Fixed issue where login error would reappear after loggin in succesfully

Also fixed issue where logout page would not say "You have logged out."

refs #97