Login model passes data to session model for posts