added invalid user catch