LoginHelper class.
Session check + sending emails logic changed.