Add test to view homepage
Add test for sign in
Refactor sign in