Added null mailer,fixed sessions