fixing a bug when you log in from the login page using the 'Sign In' link on the nav