Fixing some basic redirect issues. Modifying users mocha tests