Fix persistence provider in login and pastecode to work with WildFly 8