updated user spec added guard