refactor sign-up and sign-in into auth module