implement login, fix LongConverter