conclude record format and add devise & cancan gem