Added the newline in the right place
Added Chai to project
Added stronger input validation