changed session stuff in views. Need to implement deleting session