Fix for Rest
loging in returns json
fixed Rest.java vote function fucked up