added user signup functions to api, and basic functions to frontend