check if user voted php