server responding to loggin but has issues on key return