Trying to move the session if statement
Tried moving the session if statement instide the action = null statement