improved exception handling for createUser
Stateless is required to prevent javax.persistence.TransactionRequiredException
fixed nullpointer exception if the voting is not closed