Registration page writes to database