[infra] Make changed to start server before tests(for integration tests) and stop after tests
[login] first acceptance test for login action and minor refactorings