implementation code for sessions controller new action