added session flush
testing to see if construct function would help - it did not
added alpha requirement to first and last