Use "session.empty?" rather than "session.nil?" in thanks view