types for post and user