Make invalid username 404 rather than 500