a new bean has been added. It's called loginBean, is sessionscoped and handles everything concerning logging in/out and registering users