added email validation and a success screen