dietcake tutorial with registration and pagination