added validations to user-model
Replaced selenium with phantom.js for integration testing