flash notices
added logic behind sessions