Added more meat to the server login functions