Example for Web login with JavaEE and Glassfish