Remove user restrictions
move errors to errors.js