Refactor sign in form (exercise #1 in chapter 8.5)