added valitation, need to fix error in helpers spec