updated views and js
added tests to check validation of metadata
modified controller to accept as XMLHttpRequest
updated validation annotations in models.