Add login and testing
Add test of cookie implementation