session_helper, login model (all beginnings, incomplete)