add users controller function in posts