implementing local log in. TODO - figure out how to get something stored on the server so we dont have to log in after each refresh