add login validate of server end