Validation done and added toast element for validation