Refactory vendor sign in and sign up