Auth module of user
Added checkUser function