authme function added