moving errors from Register to prop file