Better flash notices and sessions fixes