fix sql error which prevents remote login from working

remote login doesn't work beacuse of missing space in sql.