double entry

About $loginRequired is already checked