added validation in update view