validates for user and microposts model