fixes add_image,add check format
fixes auth,redirect fixes