Add tests, refactor flash markup
Finish sign in