changed require login to ensure logged in
changed the require  log in on before filter to ensure logged in
made minor changes