Fixed null pointer in 'check' method when user does not exist.