added email validation, fixed erro in deleting card (don't know how)