turning back on checking for log in since we are now going to be using real server for development. also fix bug where if not logged in redirect url once user did log in was missing the query string piece