added redirect in public controller for logged in users