Implementing integration tests to login