put email validation and additional tests