added validation and delete user in the controler