Add before filter for sessions, add flash partial