Re-wrote login feature to use server side cookie and make an ajax request to determine if we are logged in.