Adds 'user already exists' check and inserts valid data into DB