Remove var_dump's and fixed some bugs
Add has_vote function , save function
Add more validations
Fix minor bugs