adding micropost errors and functionality