Fixing jbuilder and validation problems.
Merge pull request #2 from billxinli/master

Fixing jbuilder and validation problems.