add login operation to php server