started work on mocha tests
updated user controller, fixed bug where call to render had 'error' and template expedted 'errors'
Updated mocha tests