changed call to signUp function to pass javascript variable related to object dataSource instead of the object dataSource.