move helper classes to library
add input validation
finalize form