added in a email confirmation, buggy and doesn't work right now