refactor sign_in page