Refactor User Model

refactor check user method, and turn on the raise no found flag to avoid some unrecognized errors