fixed error white space validation into the models