implemented signup write to db