fix auth in rapanel
updates from sanmiks project