made it possible to define postAction for auth models