Added checkUser(), registerUser(), init()