changed view of register window and add validation rule