changed return values for userCheck