use password field for code entry and fix room id bug