adjusted user controller to comply with api/v1 definition.