login documentation and test