Added necessary {} after single line if blocks and added ; after doFilter