Added mailer class; Addes registration functions; Added validation functins (for registration purposes)