Fix Null Point Exception in method public synchronized void logout(String username) {