login set and almost tested