latest code with sign up and send mail(with changed path)