submit funtion on signup