updated session schema and finalized login.