added email registration validation