Added error handling for incorrect emails