Updated microposts model with scope and validation