added input for name and room