added check for email to prevent registration using the same address