updated customer create function and added validation error to the view.