Updated functions to AuthPanel version 1.0.2