implement basic procedure of sign in and sign up