fixing up authentication issues