Not working post.
Fixed registration form, added some more checks, added a model in angularjs.