Add basic login server code