createUser should grant localhost access right