implemented basic email confirmation