SignIn/Out PHP

And Some other small fixes