Changing invalid identity parameters to auth failure