login server routine
version 1.0
no test, because I don't know how?!?! patrick ?!?!