added post funtion to user model