finished with email validation and fixed sending emailś