Added email authentication/activation functionality