a basic framework for sign up & log in