added user signup functionality, connected database