added session persistence and facebook login