Finalize tests, add docs, fix login view