added auth filter to register