some tests and fix login action