fixed login/out for long names

fixed platform partially