Fixed copy assignment and refactored it using form object