add password/locking to question in rails models