add title validation. add edit and update actions