Adds security filter. Still working on authentication with hibernate.