save user input with sessions