tweaked the home page + made login-logout more robust