Updated build.sbt & added valid check.