improve php
make registering server side
make signin use serverside code