user session auth fix
fixed as per review comments
Merge pull request #12 from cs27x/auth/fix

user session auth fix