fixed some register validation issues and backcone.js