added rough code to login via the server