Corrected bug causing BadPaddingException (wrong username being used to get key)