added check for email availabilty