that's not the right way to accomplish this.
do you want to be able to let unapproved users know they have not been approved?
or just flat out restrict them?
if you just want to restrict unapproved users, on the database tab of the authenticate user behavior, select the approved column, and enter 1 for the value. no other change needs to be made to the logged into users rule.