Moved post and user to lib