fixed bug in email confirmation