added functionality for signup including database